package com.dy.lock.screen.service;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.GoodsInfo;
import com.dy.lock.screen.scoket.Head;

/**
 * @author java
 * 
 */
public interface GoodsService {

	/**
	 * 分页查询
	 * 
	 * @param para
	 * @param head
	 * @return
	 */
	public List<GoodsInfo> queryPage(Map<String, Object> para, Head head);

	/**
	 * 通过商品id查询
	 * 
	 * @param goodsid
	 * @return
	 */
	public GoodsInfo queryByPrimaryKey(String goodsid);

	public GoodsInfo queryByOrderId(String orderId);

	/**
	 * 更新商品库存
	 * 
	 * @param gi
	 * @return
	 */
	public int update(GoodsInfo gi);
}
